package cn.enilu.guns.bean.dto;

import cn.enilu.guns.bean.entity.door.UserCard;
import cn.enilu.guns.bean.entity.system.Dept;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * 用户传输bean
 * 
 * @author stylefeng
 * @Date 2017/5/5 22:40
 */
@Data
public class UserDto{

	private Long id;
	private String account;
	private String password;
	private String salt;
	private String name;

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date birthday;
	private Integer sex;
	private String email;
	private String phone;
	private String roleid;
	private Long deptid;
	private Long eduorgid;
	private Integer status;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date createtTme;
	private Integer version;
	private String avatar;
	private String credentialsType;
	private String credentialsNo;
	private String position;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date entryDate;
	private String serialNumber;
	private Dept deptInfo;
	private String isOwnCard;
	private List<UserCard> userCard;
}
